class Part < ActiveRecord::Base
	belongs_to :part_style
	has_many :part_purchase_details
	has_many :order_maintain_parts
	has_many :part_stockin_details
	has_one :inventory
	has_many :part_stockout_details
	has_many :part_salse_details
	has_many :order_beauty_parts
	belongs_to :warehouse_slot

	validates_uniqueness_of :code

end
